<?php
/**
 *Create by PhpStorm
 *User:Kendy
 *Date:2019/11/18/009
 *Time:14:19
 */
namespace app\admin\model;
use think\Model;
use think\Db;
class AuthRule extends Model
{
    // 确定链接表名
    protected $name = 'auth_rule';
   
    /**
     * 加载全部权限
     */
    public function getAllPrivileges(){
        return $this
        ->field('id,pid,name,title,type')
        ->select();
    }
    

}